import {useNavigate} from 'react-router-dom'

function Header() {
    let navigate = useNavigate();
    
    return <div>
    <button onClick={(e) => navigate('/home')}>点击</button>
        header
    </div>
}
export default Header